/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.clinicplus.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;

/**
 *
 * @author roniere
 */
@Entity
public class ValueProcedure implements Serializable{
    
    @Id
    @SequenceGenerator(sequenceName = "seq_value_procedure", name = "seq_value_procedure", allocationSize = 1)
    @GeneratedValue(generator = "seq_value_procedure", strategy = GenerationType.SEQUENCE)
    private Long id;
    
    @Column(scale= 4, precision=10)
    @DecimalMin( value = "0.00" )
    @Digits( fraction = 4, integer = 10 )
    private BigDecimal amount;
    
    @ManyToOne
    private Operator operator;
    
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date createAt;

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Operator getOperator() {
        return operator;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }
    
    
    
}
